package com.xucy.springboot.designmodel.creational.abstractfactory;

/**
 * @Author xucy
 * @Date 2019-07-14 16:49
 * @Description 抽象工厂模式。注重的是产品组（javabook javavideo就属于一个产品组）
 **/

public class Test {
    public static void main(String[] args) {
        SourseFactory sourseFactory=new JavaSourseFactory();
        Book book=sourseFactory.produceBook();
        book.produceBook();

        Video video=sourseFactory.produceVideo();
        video.produceVideo();
    }
}
